#ifndef __ISPMASTER_H__
#define __ISPMASTER_H__

#include <stdint.h>

typedef enum
{
    Ready = 0x00,
    Busy = 0x01,
    Error = 0x02
} MCU_Status;

typedef struct
{
    int32_t(*txdata)(uint8_t*buf,uint16_t len,uint32_t ot);
    int32_t(*rxdata)(uint8_t*buf,uint16_t len,uint32_t ot);
    void (*delaynms)(uint32_t n);
    void (*ctrlrst)(uint8_t s);
    void (*ctrlboot0)(uint8_t s);
    uint32_t srcaddr;
    uint32_t dstaddr;
}ispm_t;


#endif
